const express = require("express")

const router = express.Router()

const userHandler = require('../router_handler/user_handler')

const expressJoi = require("@escook/express-joi")
const {userSchema} = require('../schema/user')

router.post('/login',expressJoi(userSchema),userHandler.loginHandler)
router.post('/register',expressJoi(userSchema),userHandler.registerHandler)

module.exports = router
